﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Zoomtel.Service.BIZ;
using Zoomtel.Service.BIZ.ViewModels;
using Zoomtel.Web.Controllers;

namespace Zoomtel.Web.Areas.Pub.Controllers
{
    public class BankInfoController : PubModuleController
    {
        BankInfoService bankInfoService;
        public BankInfoController(BankInfoService _bankInfoService)
        {
            bankInfoService = _bankInfoService;

        }

        [HttpGet]
        [Description("获取收款信息")]
        public async Task<IResultModel> GetBankInfo()
        {

            return await bankInfoService.GetBankInfo();


        }
        [AllowAnonymous]
        [Description("保存收款信息")]
        [HttpPost]
        public async Task<IResultModel> SaveBankInfo(BankInfoAddModel model)
        {

            return await bankInfoService.SaveBankInfo(model);


        }



    }
}